<template>
  <h1>El-布局组件</h1>
  <el-row :gutter="20">
   <el-col :span="6">哈哈哈哈</el-col>
   <el-col :span="6">哈哈哈哈</el-col>
   <el-col :span="6">哈哈哈哈</el-col>
   <el-col :span="6">哈哈哈哈</el-col>
  </el-row>
  <h3>两张图</h3>
  <el-row :gutter="10">
   <el-col :span="12"><img src="rich.jpg" style="width: 100%;"></el-col>
   <el-col :span="12"><img src="rich.jpg" style="width: 100%;"></el-col>
  </el-row>
  <h3>六张图</h3>
  <el-row :gutter="10">
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <h3>列偏移</h3>
  <el-row :gutter="10">
   <!--:offset="4" 列偏移 默认值为0 靠左-->
   <el-col :offset="4" :span="20"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <!-- 1.图片2024.png占12列,在页面居中位置 -->
  <el-row :gutter="10">
    <el-col :offset="6" :span="12"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <!-- 2.有三张图片2024.png,他们的宽度比为1:2:3 -->
  <el-row :gutter="10">
    <el-col :span="4"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="8"><img src="2024.png" style="width: 100%;"></el-col>
    <el-col :span="12"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <!-- 3.有8列,均分一行,每列显示的内容为1 2 3...8 -->
  <el-row :gutter="10">
    <el-col :span="3" v-for="item in 8" style="border:3px solid red;">{{item}}</el-col>
  </el-row>
  <br>
  <br>
  <br>
  <!-- 布局嵌套 -->
  <el-row :gutter="10">
   <el-col :span="12" style="border:3px solid red;">12</el-col>
   <el-col :span="12" style="border:3px solid green;">
     <!-- 看作新的一行row,还是瓜分24列 -->
     <el-row :gutter="10">
      <el-col :span="8" style="border:3px solid blue;">8</el-col>
      <el-col :span="8" style="border:3px solid blue;">8</el-col>
      <el-col :span="8" style="border:3px solid blue;">8</el-col>
     </el-row>
   </el-col>
  </el-row>
</template>

<script setup>

</script>

<style scoped>

</style>